const state = {
  state: null,
  isLoad:false
};

const mutations = {
  SETSTATE(state, data) {
    state.state = data;
  },
  SETLOAD(state, data) {
    state.isLoad = data;
  }
};

const actions = {
  setState({ commit }, data) {
    commit("SETSTATE", data);
  },
  setLoad({ commit }, data) {
    commit("SETLOAD", data);
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters: {
    state: state => state.state,
    isLoad: state => state.isLoad,
  }
};
